package com.umedcn.dao;

import com.umedcn.mapper.UserMapper;
import com.umedcn.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by jiangadam on 2017/7/18.
 */
@Component
public class UserDao {
    @Autowired
    private UserMapper userMapper;

    public List<User> getAllUsers(){
        return userMapper.getAllUsers();
    }

    public User findUserById(Integer id){
        return userMapper.findUserById(id);
    }

    public User getUsers(Integer user_id){
        return userMapper.getUsers(user_id);
    }
}
